// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   UltimasSeisPublicacionesPersistor.java

package org.fiel.persistence;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.*;
import org.apache.commons.logging.Log;
import org.fiel.commons.jdbc.Persistor;
import org.fiel.domain.Informacion;

public class UltimasSeisPublicacionesPersistor extends Persistor
{

    public UltimasSeisPublicacionesPersistor()
    {
    }

    protected String getTableNames()
    {
        return "informacion";
    }

    protected Object extract(ResultSet rs)
    {
        try
        {
            java.sql.Date fec = null;
            Informacion info = new Informacion();
            info.setAbstract(rs.getString("Abstract"));
            info.setAbstractE(rs.getString("AbstractE"));
            info.setCosto(rs.getString("Costo"));
            fec = rs.getDate("FechaE");
            info.setFechaE(fec == null ? null : new Date(fec.getTime()));
            fec = rs.getDate("FechaP");
            info.setFechaP(fec == null ? null : new Date(fec.getTime()));
            info.setFormato(rs.getString("Formato"));
            info.setIdenint(new Integer(rs.getInt("Idenint")));
            info.setIdensubtipo(new Integer(rs.getInt("Idensubtipo")));
            info.setIdentipo(new Integer(rs.getInt("Identipo")));
            info.setImagen(rs.getString("Imagen"));
            info.setNameFile(rs.getString("NameFile"));
            info.setNameFileE(rs.getString("NameFileE"));
            info.setNivel(rs.getString("Nivel"));
            info.setTitulo(rs.getString("Titulo"));
            info.setTituloE(rs.getString("TituloE"));
            info.setTiempo(new Integer(rs.getInt("tiempo")));
            return info;
        }
        catch(Throwable e)
        {
            Persistor.logger.error(e.getMessage());
        }
        return null;
    }

    protected List getOrderByFields()
    {
        List list = new ArrayList();
        list.add("fechae");
        return null;
    }

    protected void appendConstraints(StringBuffer buffer)
    {
        super.appendConstraints(buffer);
    }

    protected void setearValores(PreparedStatement ps)
    {
        super.setearValores(ps);
    }

    private String getStringFechaConstraint()
    {
        Calendar cal = Calendar.getInstance();
        return null;
    }
}
